require('@nomicfoundation/hardhat-toolbox');
require('@nomicfoundation/hardhat-verify');
require('dotenv').config();
require('solidity-coverage');

require('./tasks/balance');
require('./tasks/accounts');
require('./tasks/block-number');

const SEPOLIA_RPC_URL =
    process.env.SEPOLIA_RPC_URL || 'https://sepolia.infura.io/v3/your_key';
const PRIVATE_KEY = '0x' + process.env.PRIVATE_KEY || '0xkey';
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY || 'key';
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY || 'key';

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
    defaultNetwork: 'hardhat',
    networks: {
        sepolia: {
            url: SEPOLIA_RPC_URL,
            accounts: [PRIVATE_KEY],
            chainId: 11155111,
        },
        localhost: {
            url: 'http://127.0.0.1:8545',
            // accounts: from hardhat.config
            chainId: 31337,
        },
    },
    etherscan: {
        // Your API key for Etherscan
        // Obtain one at https://etherscan.io/
        apiKey: ETHERSCAN_API_KEY,
    },
    solidity: '0.8.28',
    paths: {
        sources: './contracts',
    },
    gasReporter: {
        enabled: false,
        // currency: 'USD',
        // tputFile: 'gas-report.txt',
        // Colors: true,
        // inmarketcap: COINMARKETCAP_API_KEY,
        // token: 'MATIC',
    },
};
